/*
 * cache.h
 *
 *  Created on: 29/10/2011
 *      Author: utn_so
 */

#ifndef CACHE_H_
#define CACHE_H_

#include <stdint.h>
#include "structsFAT.h"
#include "../../General/Stream/stream.h"

void Cache_Initialize();
void Cache_AddFile(const char * fileName);
void Cache_RemoveFile(const char * fileName);
int Cache_Write(const char * fileName, char * buffer, BLOQUE aBlock);
int Cache_Read(const char * fileName, char * bufferOut, BLOQUE aBlock);
int Cache_Disable();
void Cache_Dump();
int Cache_SetListClusters(const char * fileName, Fifo_CLUSTER * aClusterList);
int Cache_Flush(const char * path);

#endif /* CACHE_H_ */
